<!DOCTYPE html>
<html>
<head>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
</head>
<body>
<% include common/header.ejs %>

<div class="container page-content">
    <div class="index_tap">
        <div class="tap_panel addMessage">
            <a href="house/repairManagement">
                <span class="icon glyphicon glyphicon-list-alt"></span>
                <span class="number" id="repairNum">0</span>
                <span class="title">报修单数</span>
            </a>
        </div>
        <div class="tap_panel addUser">
            <a href="house/apartmentManagement">
                <span class="icon glyphicon glyphicon-globe"></span>
                <span class="number" id="houseNum">0</span>
                <span class="title">房屋数</span>
            </a>
        </div>
        <div class="tap_panel addUser">
            <a href="house/apartmentManagement">
                <span class="icon glyphicon glyphicon-book"></span>
                <span class="number" id="emptyHouse">0</span>
                <span class="title">空房数</span>
            </a>
        </div>
        <div class="tap_panel addUser">
            <a href="crm/billManagement">
                <span class="icon glyphicon glyphicon-menu-hamburger"></span>
                <span class="number" id="delayBillNum">0</span>
                <span class="title">超期账单</span>
            </a>
        </div>
        <div class="tap_panel total">
            <a href="crm/userManagement">
                <span class="icon glyphicon glyphicon-user"></span>
                <span class="number" id="userNum">0</span>
                <span class="title">总客户数</span>
            </a>
        </div>
    </div>
    <div class="index_tap">

        <div class="tap_panel addUser">
            <a href="crm/billManagement?fromFlag=todayIncome">
                <span class="icon glyphicon glyphicon-usd"></span>
                <span class="number" id="todayIncome">0</span>
                <span class="title">今日收入</span>
            </a>
        </div>
        <div class="tap_panel addUser">
            <a href="crm/contractManagement?fromFlag=deadlineHouse">
                <span class="icon glyphicon glyphicon-home"></span>
                <span class="number" id="deadlineHouse">0</span>
                <span class="title">临期房屋</span>
            </a>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
                系统公告
            </h3>
        </div>
        <div class="list-group index_message" id="messagePanel">
            <% for(var i=0;i<data.length;i++){%>
            <a target="_blank" href="article/articleManagement-detail?id=<%= data[i].id %>" class="list-group-item">
                <span class="date"><%= data[i].modifiedDate %></span>
                <%= data[i].name %>
            </a>
            <% } %>

        </div>
        <% if(data.length==0) {%>
        暂无公告信息
        <% } %>
    </div>
    <div id="pagination"></div>
</div>

<% include common/footer.ejs %>
</body>
</html>
